package com.ztgf.order.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ztgf.order.models.dto.OrderStatusDTO;
import com.ztgf.shopping.models.dto.shop.ShopSysInvoiceDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 订单状态表映射
 *
 * @author YUE
 * @Date 2020-06-23 10:33:48
 */
@Mapper
public interface OrderStatusMapper extends BaseMapper<OrderStatusDTO> {
    public Integer getUnfinishedBuyerOrderNum(Long buyerShopId);
    public Integer getUnfinishedSellerOrderNum(Long sellerShopId);

    Integer getUnfinishedBuyInquiryOrderNum(Long buyerShopId);
    Integer getUnfinishedSellerInquiryOrderNum(Long sellerShopId);

    /**
     * 同步技术服务费（买家申请平台砍价成功）
     * @return
     */
    List<ShopSysInvoiceDTO> getSynchronizationShopSysInvoiceBuy();
}
